package seven;

import java.util.Arrays;

public class max { 
    int[] a= {1,3,4,7,2,1,1,5,2}; 
    int firstNum,secondNum,count,secondCount=0; 
    static int num; 
    public max(){ 
        Arrays.sort(a); 
        System.out.println("Biggest:"+a[a.length-1]); 
        for(int i=0;i<a.length;i++){ 
            firstNum=a[i]; 
            count=0; 
            for(int k=0;k<a.length;k++){ 
                secondNum=a[k]; 
                if(firstNum==secondNum){ 
                    count++;                    
                } 
            }      
            if(secondCount<=count){ 
                secondCount=count;  
                num=firstNum;                
            }              
        } 
        System.out.println("Count:"+secondCount+"/nnum:"+num);            
    }  
    public static void main(String[] args){ 
        new max(); 
    }   
}
